#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QDialog>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked()
{
    QDialog* dia = new QDialog(this);
    dia->setAttribute(Qt::WA_DeleteOnClose);
    dia->resize(400,300);
    dia->setWindowTitle("提示");
    dia->show();
}
